$(function(){
	var h=$(window).height();
	$('.bg').css({'height':h,'overflow':'hidden'});
	$('.arrow').click(function(event) {
		$('html,body').animate({scrollTop:h},500);
	});
	$('.banner-inner').css({'max-height':h-230});
	$('.banner-img').css({'max-height':h-230-30});
	// 第三块
	$('.third-top-c').click(function(){
		if($(this).siblings('.third-bottom').css('display')=='none'){
			$(this).children('.arrow-b').children().attr({'src':'images/arrow-t.png'});
			$(this).children('.arrow-b').children().css({'width':'30px','height':'30px',});
			$(this).siblings('.third-bottom').slideToggle();
			$(this).children('.text').css({'display':'none'});
		}else{
			$(this).children('.arrow-b').children().attr({'src':'images/arrow.png'});
			$(this).children('.arrow-b').children().css({'width':'30px','height':'16px',});
			$(this).siblings('.third-bottom').slideToggle();
			$(this).children('.text').css({'display':'inline-block'});
		}
	})
	$('.mobile-nav img').click(function(event) {
		$(this).siblings('.mobile-inner').slideToggle();
	});

	$(window).scroll(function(event) {
		var h2=$(document).scrollTop();
		if(h2>h){
			$('.header').css({
				'position':'fixed',
				'top':'0',
				'left':'0',
				'background':'rgba(255,255,255,0.7)',
				'zIndex':'3',
			});
		}else{
			$('.header').css({
				'position':'static',
				'background':'none',
				'zIndex':'3',
			});
		}
	});
	// idea
	$('.service').click(function(event) {
		$('.light').children().attr({'src':'images/light2.png'});
		$('.light').children().css({'width':'120px','height':'128px','top':'8px','left':'348px'})
	});
});